#include "StereOnWithCDCommand.h"

StereOnWithCDCommand::StereOnWithCDCommand(Stereo *stereo)
{
    this->stereo = stereo;
}

void StereOnWithCDCommand::execute()
{
    stereo->on();
    stereo->setCD();
    stereo->setVolume(11);
}

string StereOnWithCDCommand::getClassName()
{
    return "StereOnWithCDCommand." + stereo->getClassName();
}
